<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${pageContext.request.contextPath}/">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>作业历史</title>
<style>
	body{
		text-align: center;
	}
	table{
		width: 70%;
		border: 1px solid black;
		border-collapse:collapse;
		text-align: center;
		margin: 50px auto;
	}
	tr,td{
		border: 1px solid black;
	}
	a{
		text-decoration: none;
		display: inline-block;
		background-color: purple;
		color: white;
		padding: 5px 10px;
		border-radius: 5px;
	}
</style>
</head>
<body>
<table>
	<tr>
		<th>编号</th>
		<th>姓名</th>
		<th>组别</th>
		<th>添加日期</th>
		<th>修改时间</th>
	</tr>
		<%-- <tr style="color:${l.index%2==0?'red':green}"> --%>
	<c:forEach items="${lists}" var="list" varStatus="l">
		<tr style="background-color: ${l.index%2 == 0 ?'pink':'yellow'}">
			<td>${list.id}</td>
			<td>${list.username}</td>
			<td>${list.group}</td>
			<td>${list.createtime}</td>
			<td>${list.updatetime}</td>
		</tr>
	</c:forEach>
</table>
<marquee direction="right"><a href="/home/list?upload=yes">交作业！！！！</a></marquee>

</body>
</html>